from flask import Flask
from blueprints.user import user_bp  # 导入用户蓝图
from blueprints.admin import admin_bp  # 导入管理员蓝图

app = Flask(__name__)

# 注册用户蓝图
app.register_blueprint(user_bp, url_prefix='/user')

# 注册管理员蓝图
app.register_blueprint(admin_bp, url_prefix='/admin')

if __name__ == '__main__':
    app.run(debug=True)